﻿<UserControl
    x:Class="EString.PropertyGrid.Editors.PointEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.PropertyGrid.Editors"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <SolidColorBrush x:Key="TextBrush" Color="Black"/>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">

        <Grid x:Name="LayoutRoot_Copy">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>


            <Slider x:ConnectionId='1' x:Name="sliderX" Value="{Binding MyPoint.Left, ElementName=userControl, Mode=TwoWay}"
                    VerticalAlignment="Top" Grid.Column="1"                                      
                    Maximum="1000000" Minimum="-1000000" />
            <Slider x:ConnectionId='2' x:Name="sliderY" Value="{Binding MyPoint.Top, ElementName=userControl, Mode=TwoWay}"
                    VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" Margin="0,2,0,0" 
                                                        Maximum="1000000" Minimum="-1000000" 
                    />
            <TextBlock VerticalAlignment="Center" Text="X" TextWrapping="Wrap" HorizontalAlignment="Center" FontFamily="Comic Sans MS" Foreground="{StaticResource TextBrush}" Margin="11,0,13,0" />
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Y" TextWrapping="Wrap" Grid.Row="1" FontFamily="Comic Sans MS" Foreground="{StaticResource TextBrush}" Margin="11,0,13,0" />
        </Grid>

    </Grid>
</UserControl>

